package com.spodrum.balloongl;

import org.andengine.opengl.texture.region.ITextureRegion;
import org.andengine.util.adt.pool.GenericPool;

public class BalloonPool extends GenericPool<Balloon> 
{
	private ITextureRegion mBalloonTextureRegion;
	
	public BalloonPool(ITextureRegion mBalloonTextureRegion)
	{
		this.mBalloonTextureRegion = mBalloonTextureRegion;
	}

	@Override
	protected Balloon onAllocatePoolItem() 
	{
		return new Balloon(0, 0, this.mBalloonTextureRegion, BalloonGLGameActivity.getInstance().getVertexBufferObjectManager());
	}

}
